﻿@model GameSchool.Models.EditLevelViewModel

@{
    ViewBag.Title = "Edit Level | GameSchool";
    Layout = "~/Views/Shared/_LayoutTeacher.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<div class="mainSectionStuff">
    <h2>Edit levels in @Model.courseName</h2>    
    <ul>        
        @foreach (var item in Model.itemList)
        {
            <li class="levelsTitle">@item.levelTitle @item.levelNumber | @item.levelXP XP (per level) 
                <ul class="levelsTasks">
                    <li>@Html.ActionLink("Assignment", "CreateAssignment", "Assignment", new { CID = Model.courseID, AID = item.assignmentID}, null) | @Html.ActionLink("Edit Assignments", "CreateAssignment", "Assignment", new { CID = Model.courseID, LVID = item.levelID }, null) </li>
                    <li>@Html.ActionLink("Online Exam", "CreateExam", "Exam", new { CID = Model.courseID, EID = item.examID }, null) | @Html.ActionLink("Edit Online Exam", "CreateExam", "Exam", new { CID = Model.courseID, LVID = item.levelID }, null)</li>
                    <li>@Html.ActionLink("Lecture", "ViewLectureTeacher", "Lecture", new { CID = Model.courseID, LID = item.lectureID }, null) | @Html.ActionLink("Edit Lecture", "LectureEdit", "Lecture", new { CID = Model.courseID, LVID = item.levelID }, null) </li>
                </ul>
             </li>
        }
    </ul>


<ul>
@section menu{

        <li>@Html.ActionLink("Courses Overview", "TeacherHome", "Teacher")</li> 
        <li>@Html.ActionLink("Edit Course", "CourseEdit", "Course", new { CID = Model.courseID }, null)</li>    
        <li>@Html.ActionLink("Edit Levels", "LevelEdit", "Level", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Assignments", "listAssignments", "Assignment", new { CID = Model.courseID }, null)</li>
        <li>@Html.ActionLink("Achievements", "AssignAchievement", "Achievement", new { CID = Model.courseID }, null)</li>
}
</ul>
</div>
